var child_process = require("child_process");

child_process.exec('npm install serialport --save',{maxBuffer: 1024 * 500000000},function(err, stdout, stderr) {
    if(err) throw err;
    child_process.exec('npm install',{maxBuffer: 1024 * 500000000}, function(err, stdout,stderr) {
        if(err) throw err;
        console.log('node安装成功！！')
    })
});
